package cn.getech.data.development.mapper;

import cn.getech.data.development.entity.BdpRealTaskAlarmSendLog;
import cn.getech.data.development.model.dto.RealTaskAlarmInfoDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 实时任务告警发送告警的记录表 Mapper 接口
 * </p>
 *
 * @author hujz
 * @since 2021-04-08
 */
@Mapper
public interface BdpRealTaskAlarmSendLogMapper extends BaseMapper<BdpRealTaskAlarmSendLog> {

    void deleteLogs(@Param("alarmId") Integer alarmId);

    void deleteAndTaskLogs(@Param("alarmId") Integer alarmId, @Param("deleteTaskMenuIds")List<Integer> deleteTaskMenuIds);

    List<RealTaskAlarmInfoDto> logsNeedPushLists();

    void updateByIds(@Param("needDeleteIds") List<Integer> needDeleteIds);

    void deleteLogsByTriggerCondition(@Param("alarmId") Integer alarmId, @Param("triggerCondition") Integer triggerCondition);

    void updateIsSendByIds(@Param("ids") List<Integer> ids);
}
